home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
RTCPlugin.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
3KB
|
117 lines
;
; File: RTCPlugin.a
;
; Contains: System interface for RTC plugins
;
; Version: Technology: System 8
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__RTCPLUGIN__') = 'UNDEFINED' THEN
__RTCPLUGIN__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF FOR_SYSTEM8_PREEMPTIVE THEN
IF &TYPE('__TIMING__') = 'UNDEFINED' THEN
include 'Timing.a'
ENDIF
ENDIF
IF FOR_SYSTEM8_PREEMPTIVE THEN
;
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
; status codes
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
;
kRTCPluginVersionOne EQU $01
kRTCPluginCurrentVersion EQU $01
kRTCNoError EQU 0
kRTCTimeout EQU 1
kRTCUnexpectedError EQU 2
kRTCMemoryError EQU 3
kRTCParameterError EQU 4
kRTCDeviceError EQU 5
kRTCUnexpectedDeviceRequest EQU 6
kRTCControllerError EQU 7
kRTCConsistencyCheckError EQU 8
;
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
; Plugin Calls Provided by the Plugin
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
; All plugin calls are async.
; The plugin starts the i/o and returns immediately.
; The plugin ISR calls RTCFamRequestComplete() when
; the i/o is completed (see below).
;
RTCPluginDispatchTable RECORD 0
version ds.l 1 ; offset: $0 (0)
reserved ds.l 3 ; offset: $4 (4)
Verify ds.l 1 ; offset: $10 (16)
Init ds.l 1 ; offset: $14 (20)
Term ds.l 1 ; offset: $18 (24)
Read ds.l 1 ; offset: $1C (28)
Write ds.l 1 ; offset: $20 (32)
sizeof EQU * ; size: $24 (36)
ENDR
;
; extern OSStatus RTCPluginHWVerify(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCPluginHWVerify
ENDIF
;
; extern OSStatus RTCPluginInit(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCPluginInit
ENDIF
;
; extern OSStatus RTCPluginTerm(void )
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCPluginTerm
ENDIF
;
; extern OSStatus RTCPluginSet(Nanoseconds newTime)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCPluginSet
ENDIF
;
; extern OSStatus RTCPluginGet(Nanoseconds *currentTime)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCPluginGet
ENDIF
;
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
; Plugin Calls Provided by the Family
;~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
;
;
; extern void RTCFamRequestComplete(OSStatus status)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION RTCFamRequestComplete
ENDIF
ENDIF
ENDIF ; __RTCPLUGIN__